<template>
  <div class="sec-wrapper">
    <div class="sec-title">
      <div class="zhuangtai_box">
        <img src="../assets/images/sec-icon.png" alt="" v-if="title" />
        {{ title }}
        <slot name="zhuangtai"></slot>
      </div>
      <div class="sec-title-right">
        <slot name="right"></slot>
      </div>
    </div>
    <div class="sec-content">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "SecContainer",
  props: {
    title: {
      type: String,
    },
  },
};
</script>

<style scoped lang="less">
.zhuangtai_box{
  display: flex;
  align-items: center;
}
.sec-wrapper {
  background: linear-gradient(-69.7deg, #091318, #203136);
  border: 1px solid #006686;
  height: 100%;
  width: 100%;
  .sec-title {
    height: 30px;
    line-height: 30px;
    margin: 0 15px;
    font-size: 18px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    img {
      display: inline-block;
      width: 18px;
      height: 16px;
      margin-right: 10px;
    }
    .sec-title-right{
      margin-top: 5px;
    }
  }
  .sec-content {
    padding: 0 20px;
    height: calc(100% - 30px);
  }
}
</style>
